package com.sstir.doctor.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sstir.doctor.es.doc.DoctorDoc;
import com.sstir.doctor.pojo.dto.DoctorDocDTO;
import com.sstir.doctor.pojo.query.DocSearchQuery;
import com.sstir.doctor.pojo.query.GenericQueryPage;

/**
 * <p>
 *     ES搜索服务
 * </p>
 *
 * @author: fli
 * @email: fli@sstir.cn
 * @date: 2021/1/15 12:38
 */
public interface EsSearchService {


    /**
     * 搜索文档
     * @param queryPage  带分页的查询条件
     * @return 分页结果
     */
    IPage<DoctorDocDTO> searchDocs(GenericQueryPage<DocSearchQuery> queryPage);
}
